package com.kl.feign.fallback;

import com.kl.domain.LogisticsStoreDTO;
import com.kl.domain.StaffWarehouseDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.LogisticsStoreControllerFeign;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class LogisticsStoreControllerFeignFallback implements LogisticsStoreControllerFeign {

    @Override
    public Result<LogisticsStoreDTO> selectLogisticsStoreById(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<LogisticsStoreDTO>> selectLogisticsStoreAll() {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result saveLogisticsStore(LogisticsStoreDTO logisticsStoreDTO) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateLogisticsStore(Long id, LogisticsStoreDTO logisticsStoreDTO) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result deleteLogisticsStore(Long[] id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<Map<String, Object>> selectLogisticsStoreLikePage(Integer pageNumber, Integer pageSize, String storeAddr, String storeName, String business, Integer ifWarehouse) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateLogisticsStoreBySiteRole(Long[] id, Integer SiteRole) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<StaffWarehouseDTO> selectStaffWarehouseById(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<StaffWarehouseDTO>> selectStaffWarehouseByLogisticsStoreId(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result saveStaffWarehouse(StaffWarehouseDTO staffWarehouseDTO) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result updateStaffWarehouse(Long id, StaffWarehouseDTO staffWarehouseDTO, Integer warehouseStatus) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result deleteStaffWarehouse(Long[] id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<StaffWarehouseDTO>> selectStaffWarehouseToList() {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<LogisticsStoreDTO>> selectByCityName(String cityName) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<LogisticsStoreDTO>> selectByCityId(String cityId) {
        return Result.build(ConstantEnum.FaillBack);
    }
}
